# leeetcode 242, 有效字母异位词
class Solution:
    def isAnagram(self, s: str, t: str) -> bool:
        key_s = set(s)
        key_t = set(t)
        ms = {k: s.count(k) for k in key_s} 
        mt = {k: t.count(k) for k in key_t}
        print(ms)
        print(mt)
        if ms == mt:
            return True
        return False 
